<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        body {
            position: relative;
        }

        .cpm {
            width: 450px;
            height: 400px;
            position: absolute;
            box-shadow: 0 0 10px #999;
            border-radius: 10px;
        }

        .cpm>.title {
            background: rgb(233, 228, 228);
            border-radius: 10px 10px 0 0;
            width: 450px;
            height: 50px;
            text-align: center;
            font-size: 20px;
            line-height: 50px;
        }

        .cpm>.body {
            width: 448px;
            height: 350px;
            border-radius: 0 0 10px 10px;
            padding-top: 20px;
        }

        .cpm>.body>img {
            display: block;
            margin: 0 auto;
            width: 180px;
            height: 200px;
        }

        .cpm>.body>p {
            width: 100%;
            height: 30px;
            line-height: 30px;
            text-align: center;
            font-size: 20px;
            color: #333;
            margin-top: 15px;
        }

        .cpm>.body>button {
            width: 300px;
            height: 50px;
            color: #fff;
            font-size: 18px;
            text-align: center;
            line-height: 30px;
            border: 0;
            background: rgb(40, 118, 245);
            border-radius: 5px;
            display: block;
            margin: 0 auto;
            margin-top: 15px;
        }
    </style>
</head>

<body>
    <div class="cpm">
        <div class="title">
            提示
        </div>
        <div class="body">
            <img src="/static/image/prompt_phone.png">
            <p>为了您的账号安全，快去绑定邮箱吧</p>
            <button type="button" onclick="goAndClose()">去绑定</button>
        </div>
    </div>
</body>

</html>
<script>
function goAndClose()
{
    parent.bindEmail();
    var index = parent.layer.getFrameIndex(window.name);
    parent.layer.close(index);
}
</script>
